package com.cuijq.ms.chain.v1;

/**
 * @author by CuiJQ
 * @Classname ConcreteHandler2
 * @Description ConcreteHandler2 Description
 * @Date 2021/7/13 19:37
 */
public class ConcreteHandler2  extends Handler {
  @Override
  public void handleRequest(String request) {
    if (request.equals("two")) {
      System.out.println("具体处理者2负责处理该请求！");
    } else {
      if (getNext() != null) {
        getNext().handleRequest(request);
      } else {
        System.out.println("没有人处理该请求！");
      }

    }
  }

}
